package com.server.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.server.entity.UcenterUserTreePath;
import com.server.entity.UpmsPermission;
import com.server.mapper.UcenterUserTreePathMapper;
import com.server.service.IUcenterUserTreePathService;
import com.server.util.Result;
import com.server.vo.user.UserTreeVo;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

/**
 * <p>
 * 用户表推荐 服务实现类
 * </p>
 *
 * @author
 * @since 2020-04-03
 */
@Service
@AllArgsConstructor
public class UcenterUserTreePathServiceImpl extends ServiceImpl<UcenterUserTreePathMapper, UcenterUserTreePath> implements IUcenterUserTreePathService {


	@Override
	public Result<List<UserTreeVo>> getListByUserId(Integer userId) {
		List<UserTreeVo>  userList = this.baseMapper.getListByUserId(userId);
		return Result.returnData(userList);
	}
}
